using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson21 : MonoBehaviour
{
    
    void Start()
    {
        GameObject line2 = new GameObject();
        line2.name = "name";
       LineRenderer line=line2.AddComponent<LineRenderer>();
       line.loop = true;
        line.startWidth= 1f;
        line.endWidth= 2f;
        line.positionCount = 3;
        line.SetPositions(new Vector3[] {new Vector3(0,0,0),
        new Vector3(2,0,0),new Vector3(0,2,0)});
        line.useWorldSpace = false;
    
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
